const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `2019${i}`,
        code: 'string',
        name: 'string',
        gender: 1,
        type: 1,
        cellPhoneNumber: 'string',
        email: 'string',
        address: 'string',
        filingTime: '2019-09-26T09:15:09.483Z',
        options: [
            'export'
        ],
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.get('/:id', (req, res) => {
    res.json(
        {
            message: 'string',
            payload: {
                id: '1',
                code: 'string',
                name: 'string',
                email: 'string',
                cellPhoneNumber: 'string',
                idType: 1,
                idNumber: 'string',
                gender: 1,
                address: 'string',
                birthday: '2019-09-26T10:13:21.722Z',
                filingTime: '2019-09-26T10:13:21.722Z',
                occupationType: 1,
                industryType: 1,
                diploma: 1,
                householdIncome: 1,
                type: 1,
                hobby: 1,
                favoriteVehicleFactor: 1,
                ownedVehicleBrand: 1,
                isTestDrive: true,
                isLoans: true,
                options: [
                    'export'
                ],
                details: [{
                    id: '1',
                    brandCode: 'string',
                    brandName: 'string',
                    productCategoryCode: 'string',
                    productCode: 'string',
                    productName: 'string',
                    vin: 'string',
                    engineCode: 'string',
                    licensePlate: 'string',
                    saleDate: '2019-09-26T10:13:21.722Z',
                    salePrice: 1,
                    currency: 1
                }]
            }
        }
    );
});
module.exports = router;
